package com.snail.app.config.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@ApiModel
@Data
@Entity
@Table(name = "db_config_database")
public class DbConfigDatabase implements Serializable {
    @ApiModelProperty(value = "ID关键字，用于检索")
    @Id
    @Column(length = 20, nullable = false)
    private String id;//关键字，用于检索
    @Column(length = 30)
    private String title;//名称（中文）
    @Column(length = 20)
    private String type;//数据库类型
    @Column(length = 20)
    private String version;//版本
    @Column(length = 24)
    private String ip;//IP
    @Column(length = 8)
    private String port;//端口号
    @Column(length = 20)
    private String dbSchema;//schema
    @Column(length = 30)
    private String name;//数据库名称
    @Column(length = 20)
    private String account;//连接账号
    @ApiModelProperty(name = "目标库-密码")
    @Column(length = 20)
    private String password;

    private Integer state;//连接状态

    private Integer flag;
    @Column(length = 250)
    private String url;
    @Column(length = 250)
    private String remark;
}
